import request from '@/utils/request'

// 查询推广内容数据列表
export function selectByConditionList(query) {
  return request({
    url: '/marketing/BiPromotionContentDwd/selectByConditionList',
    method: 'get',
    params: query
  })
}
// 查询推广内容数据列表
export function selectContentStatistics(query) {
  return request({
    url: '/marketing/BiPromotionContentDwd/selectContentStatistics',
    method: 'get',
    params: query
  })
}
// 查询推广内容数据列表
export function listBiPromotionContentDwd(query) {
  return request({
    url: '/marketing/BiPromotionContentDwd/list',
    method: 'get',
    params: query
  })
}
// 查询推广内容数据详细
export function getBiPromotionContentDwd(id) {
  return request({
    url: '/marketing/BiPromotionContentDwd/' + id,
    method: 'get'
  })
}

// 新增推广内容数据
export function addBiPromotionContentDwd(data) {
  return request({
    url: '/marketing/BiPromotionContentDwd',
    method: 'post',
    data: data
  })
}

// 修改推广内容数据
export function updateBiPromotionContentDwd(data) {
  return request({
    url: '/marketing/BiPromotionContentDwd',
    method: 'put',
    data: data
  })
}

// 删除推广内容数据
export function delBiPromotionContentDwd(id) {
  return request({
    url: '/marketing/BiPromotionContentDwd/' + id,
    method: 'delete'
  })
}
